package cn.kxm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.InstroageBillDetailMapper;
import cn.kxm.pojo.InstroageBillDetail;
import cn.kxm.service.InstroageBillDetailService;
@Service
public class InstroageBillDetailServiceImpl implements InstroageBillDetailService{
    @Autowired
	private InstroageBillDetailMapper detailMapper;
	
	@Override
	public List<InstroageBillDetail> finDetailsByBillCode(String billCode) {
		return detailMapper.finDetailsByBillCode(billCode);
	}

	@Override
	public int addInstroageBillDetail(InstroageBillDetail inDetail) {
		return detailMapper.addInstroageBillDetail(inDetail);
	}

	@Override
	public List<Map<String, Object>> findDetailByCode(String billCode) {
		return detailMapper.findDetailByCode(billCode);
	}

	@Override
	public int delDetailByUpdate(String billCode) {
		return detailMapper.delDetailByUpdate(billCode);
	}

	@Override
	public int delInstroageBillDetailByBillCode(String code) {
		return detailMapper.delInstroageBillDetailByBillCode(code);
	}

	@Override
	public int removeInstroageBillDetailByArray(String[] codes) {
		System.out.println(codes.length);
		return detailMapper.removeInstroageBillDetailByArray(codes);
	}

	
    
}
